
/*
工厂-方法
 */
import 'package:flutter/material.dart';
import 'package:xsdk_flutter/xsdk/framework/base/xsdk_widget_stateful.dart';

/*
混合mixin:(使用里面的方法,类似接口)
混合的使用 with ,如:
class BBB extends AAA with XMixinRelease {
}
 */
mixin XMixinFunction {
  void run();
}




abstract class XFactoryFunction{

  String tag;
  XState? state;

  XFactoryFunction(
      {
        required this.tag,
        this.state,
      }
      );

  @required
  XFunction? createXFunction();


}


abstract class XFunction with XMixinFunction{

  String? tag;
  XState? state;

  XFunction(
      {
        this.tag,
        this.state,
      }
      );


}